.book-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  padding: 24px;
  margin: 16px 0;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;

  &::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 50%, #f093fb 100%);
  }

  &:active {
    transform: scale(0.98);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  }

  &:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
  }
}

/* 用户信息 */
.user-info {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid #F0F0F0;

  .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 12px;
  }

  .user-detail {
    flex: 1;

    .nickname {
      font-size: 16px;
      font-weight: 600;
      color: #2C3E50;
      margin-bottom: 4px;
    }

    .title {
      font-size: 12px;
      color: #8B7D6B;
      background: linear-gradient(135deg, #D2B48C, #F4E4BC);
      padding: 2px 8px;
      border-radius: 10px;
      display: inline-block;
    }
  }

  .post-time {
    font-size: 12px;
    color: #7F8C8D;
  }
}

/* 书籍信息 - 优化布局 */
.book-info {
  display: flex;
  align-items: flex-start;
  margin-bottom: 20px;
  padding: 0;
  background: transparent;
  border-radius: 0;
  border: none;

  .book-cover {
    width: 80px;
    height: 110px;
    border-radius: 8px;
    margin-right: 20px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
    flex-shrink: 0;
    transition: all 0.3s ease;
  }

  .book-cover:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  }

  .book-detail {
    flex: 1;
    padding-top: 8px;

    .book-title {
      font-size: 18px;
      font-weight: 700;
      color: #2C3E50;
      margin-bottom: 6px;
      font-family: 'PingFang SC', 'Helvetica Neue', sans-serif;
      line-height: 1.3;
      display: -webkit-box;
      -webkit-line-clamp: 2;
      -webkit-box-orient: vertical;
      overflow: hidden;
    }

    .book-author {
      font-size: 15px;
      color: #7F8C8D;
      font-style: italic;
      margin-bottom: 8px;
    }
  }
}

/* 书摘内容 - 优化样式 */
.post-content {
  margin-bottom: 20px;

  .quote-content {
    font-size: 17px;
    line-height: 1.7;
    color: #2C3E50;
    margin-bottom: 16px;
    font-family: 'PingFang SC', 'Helvetica Neue', sans-serif;
    padding: 16px 20px;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-left: 4px solid #667eea;
    border-radius: 0 12px 12px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    position: relative;
  }

  .quote-content::before {
    content: '"';
    position: absolute;
    top: 8px;
    left: 8px;
    font-size: 24px;
    color: #667eea;
    opacity: 0.6;
    font-family: serif;
  }

  .quote-content::after {
    content: '"';
    position: absolute;
    bottom: 8px;
    right: 12px;
    font-size: 24px;
    color: #667eea;
    opacity: 0.6;
    font-family: serif;
  }

  .thoughts {
    font-size: 15px;
    line-height: 1.6;
    color: #6c757d;
    padding: 12px 16px;
    background: rgba(102, 126, 234, 0.05);
    border-radius: 8px;
    border-left: 3px solid rgba(102, 126, 234, 0.3);

    .thoughts-label {
      font-weight: 600;
      color: #667eea;
      margin-right: 8px;
    }

    .thoughts-content {
      color: #495057;
    }
  }
}

/* 图片展示 */
.post-images {
  margin-bottom: 16px;

  .image-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    .post-image {
      border-radius: 8px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);

      &.single {
        width: 100%;
        height: 200px;
      }

      &.multiple {
        width: calc(50% - 4px);
        height: 120px;
      }
    }
  }
}

/* 标签 */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;

  .tag {
    font-size: 12px;
    color: #8B7D6B;
    background: #F4E4BC;
    padding: 4px 8px;
    border-radius: 12px;
    border: 1px solid #D2B48C;
  }
}

/* 互动按钮 - 优化样式 */
.post-actions {
  display: flex;
  justify-content: space-around;
  padding-top: 16px;
  border-top: 1px solid rgba(102, 126, 234, 0.1);
  margin-top: 8px;

  .action-item {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 25px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: rgba(102, 126, 234, 0.05);
    border: 1px solid rgba(102, 126, 234, 0.1);
    min-width: 60px;

    &:active {
      background: rgba(102, 126, 234, 0.15);
      transform: scale(0.95);
    }

    &:hover {
      background: rgba(102, 126, 234, 0.1);
      transform: translateY(-1px);
    }

    .action-icon {
      margin-right: 6px;
      color: #667eea;
      transition: all 0.3s ease;

      &.liked {
        color: #FF6B6B;
        transform: scale(1.1);
      }

      &.collected {
        color: #FFD93D;
        transform: scale(1.1);
      }
    }

    .action-text {
      font-size: 13px;
      color: #667eea;
      font-weight: 500;
    }
  }
}
